package cn.it.hbtt;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {

    public static void main(String[] args) {

        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");

        Student stu = (Student) applicationContext.getBean("stu");

        System.out.println(stu);


        User user = (User) applicationContext.getBean("user");

        System.out.println(user);
        System.out.println(user.getCitys().getClass());


    }
}
